package org.tinygroup.earthworm3.test;

import org.tinygroup.earthworm3.EarthWorm3;
import org.tinygroup.logger.LogLevel;
import org.tinygroup.logger.Logger;
import org.tinygroup.logger.LoggerFactory;

public class Crose3 {
	private static Logger LOGGER = LoggerFactory.getLogger(Crose3.class);

	public static void main(String[] args) {
		LOGGER.logMessage(LogLevel.INFO, "追踪之前");

		EarthWorm3.startTrace("", "default");
		LOGGER.logMessage(LogLevel.INFO, "刚刚开始追做");

		EarthWorm3.startLocal("hhhh", "");
		LOGGER.logMessage(LogLevel.INFO, "刚才开起了本地");

		EarthWorm3.startRpc("", "");
		LOGGER.logMessage(LogLevel.INFO, "刚才开起了RPC");

		EarthWorm3.rpcClientSend();
		LOGGER.logMessage(LogLevel.INFO, "刚才rpcClientSend");

		EarthWorm3.startLocal("hhhh1", "");
		LOGGER.logMessage(LogLevel.INFO, "刚才you开起了本地");

		EarthWorm3.endLocal();
		LOGGER.logMessage(LogLevel.INFO, "刚才结束了本地");

		EarthWorm3.rpcClientRecv();
		LOGGER.logMessage(LogLevel.INFO, "刚才rpcClientRecv");

		EarthWorm3.endLocal();
		LOGGER.logMessage(LogLevel.INFO, "刚才you结束了本地");

		EarthWorm3.endTrace();
		LOGGER.logMessage(LogLevel.INFO, "刚才结束了追踪");
	}
}
